package com.tanhua.domain.vo;

import com.tanhua.domain.db.User;

public class UserHolder {

    private static ThreadLocal<User> tl =new ThreadLocal<User>();

    // 存数据
    public static void saveUser(User user){

        tl.set(user);
    }

    //取数据
    public static User getUser(){

        return tl.get();
    }

    //删除数据
    public static void removeUser()
    {
        tl.remove();
    }
}
